This article provides concepts and step-by-step instructions for how to use the connectionRequestHandler
API method within your app logic to enable end-user functionality of intercepting and managing new peer connections advertised in the mesh.
connectionRequestHandler
API method, you can intercept new peer connections and make decisions to accept or reject them based on the peer metadata set for a given device. (See Setting the Connection Request Handler)
Within the connectionRequestHandler
you can use the connectionRequest
parameter to access information about the peer connection request. (See Reading Connection Parameter)
string
that uniquely identifies the requesting peer once discovered within the mesh.